package com.lanhe.game.sysAppUser.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lanhe.common.annotation.Excel;
import com.lanhe.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * app用户登录对象 sys_app_user
 * 
 * @author tianliang
 * @date 2024-01-22
 */
@TableName("sys_app_user")
public class SysAppUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @Excel(name = "主键id")
    @TableId
    private Long appUserId;

    /** 微信唯一 */
    @Excel(name = "微信唯一")
    private String openId;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;

    @Excel(name = "手机号")
    private String mobile;

    @Excel(name = "包名")
    private String packageName;

    /** 用户的性别（1是男性，2是女性，0是未知） */
    @Excel(name = "用户的性别", readConverterExp = "1=是男性，2是女性，0是未知")
    private String sex;

    /** 用户所在国家 */
    @Excel(name = "用户所在国家")
    private String country;

    /** 用户所在省份 */
    @Excel(name = "用户所在省份")
    private String province;

    /** 用户所在城市 */
    @Excel(name = "用户所在城市")
    private String city;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String headImgUrl;

    /** 用户金额 */
    @Excel(name = "用户金额")
    private BigDecimal totalAmount;

    /** 索取金额 */
    @Excel(name = "索取金额")
    private BigDecimal lockAmount;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setAppUserId(Long appUserId) 
    {
        this.appUserId = appUserId;
    }

    public Long getAppUserId() 
    {
        return appUserId;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getSex()
    {
        return sex;
    }
    public void setCountry(String country) 
    {
        this.country = country;
    }

    public String getCountry() 
    {
        return country;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setHeadImgUrl(String headImgUrl) 
    {
        this.headImgUrl = headImgUrl;
    }

    public String getHeadImgUrl() 
    {
        return headImgUrl;
    }
    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }
    public void setLockAmount(BigDecimal lockAmount) 
    {
        this.lockAmount = lockAmount;
    }

    public BigDecimal getLockAmount() 
    {
        return lockAmount;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("appUserId", getAppUserId())
            .append("openId", getOpenId())
            .append("nickName", getNickName())
            .append("mobile", getMobile())
            .append("packageName", getPackageName())
            .append("sex", getSex())
            .append("country", getCountry())
            .append("province", getProvince())
            .append("city", getCity())
            .append("headImgUrl", getHeadImgUrl())
            .append("totalAmount", getTotalAmount())
            .append("lockAmount", getLockAmount())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
